/*
 * Created by Jaren at 2021/10/29 9:18
 */
import 'package:get/get.dart';
import 'package:jieli_ble_ota_plugin_example/app/routes.dart';
import 'package:jieli_ble_ota_plugin_example/ota/fm_update_view.dart';
import 'package:jieli_ble_ota_plugin_example/ota/fw_update_controller.dart';
import 'package:jieli_ble_ota_plugin_example/search/search_controller.dart';
import 'package:jieli_ble_ota_plugin_example/search/search_view.dart';

class Pages {
  static final routes = [
    GetPage(
        name: '/',
        page: () => SearchPage(),
        binding: BindingsBuilder(() {
          Get.lazyPut(() => SearchController());
        }),
        preventDuplicates: true,
        children: [
          GetPage(
            name: Routes.OTA,
            page: () => FwUpdatePage(),
            binding: BindingsBuilder(() {
              Get.lazyPut(() => FwUpdateController());
            }),
          ),
        ]),
  ];
}
